package gui;

import java.awt.event.ActionListener;

import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JEditorPane;
import javax.swing.JTextField;
import javax.swing.JButton;

public class ExchangeRate extends JPanel {
	private JLabel lblExchagneRate;
	private JLabel lblCurrent;
	private JLabel lblNewExchangeRate;
	private JEditorPane editorPaneCurrent;
	private JTextField NewExchangeRate;
	private JButton btnBack;
	private JButton btnContinue;

	public ExchangeRate() {
		setLayout(null);
		
		lblExchagneRate = new JLabel("Exchange rate");
		lblExchagneRate.setBounds(184, 44, 91, 16);
		add(lblExchagneRate);
		
		lblCurrent = new JLabel("Current exchange rate is:");
		lblCurrent.setBounds(31, 109, 161, 16);
		add(lblCurrent);
		
		lblNewExchangeRate = new JLabel("Enter new exchange rate:");
		lblNewExchangeRate.setBounds(31, 158, 176, 16);
		add(lblNewExchangeRate);
		
		editorPaneCurrent = new JEditorPane();
		editorPaneCurrent.setBounds(223, 109, 134, 16);
		add(editorPaneCurrent);
		
		NewExchangeRate = new JTextField();
		NewExchangeRate.setBounds(219, 152, 138, 22);
		add(NewExchangeRate);
		NewExchangeRate.setColumns(10);
		
		btnBack = new JButton("Back");
		btnBack.setBounds(31, 247, 117, 29);
		add(btnBack);
		
		btnContinue = new JButton("Continue");
		btnContinue.setBounds(287, 247, 117, 29);
		add(btnContinue);
		}
	public void addActionListner(ActionListener l){ 
		btnContinue.addActionListener(l);
		btnBack.addActionListener(l);
	}

	public JButton getBtnBack() {
		return btnBack;
	}

	public JButton getBtnContinue() {
		return btnContinue;
	}
	
}
